<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>友情链接</title>
<link rel="stylesheet" type="text/css" href="../static/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="../static/css/nprogress.css">
<link rel="stylesheet" type="text/css" href="../static/css/style.css">
<link rel="stylesheet" type="text/css" href="../static/css/font-awesome.min.css">
<link rel="apple-touch-icon-precomposed" href="../static/images/icon/icon.png">
<link rel="shortcut icon" href="../static/images/icon/favicon.ico">
<script src="../static/js/jquery-2.1.4.min.js"></script>
<script src="../static/js/nprogress.js"></script>
<script src="../static/js/jquery.lazyload.min.js"></script>
<!--[if gte IE 9]>
  <script src="../static/js/jquery-1.11.1.min.js" type="text/javascript"></script>
  <script src="../static/js/html5shiv.min.js" type="text/javascript"></script>
  <script src="../static/js/respond.min.js" type="text/javascript"></script>
  <script src="../static/js/selectivizr-min.js" type="text/javascript"></script>
<![endif]-->
<!--[if lt IE 9]>
  <script>window.location.href='upgrade-browser.html';</script>
<![endif]-->
</head>

<body class="user-select">
<header class="header">
  <nav class="navbar navbar-default" id="navbar">
    <div class="container">
      <div class="header-topbar hidden-xs link-border">
        <ul class="site-nav topmenu">
          <li><a href="{{ url('links:tags') }}">标签云</a></li>
                    <li><a href="{{ url('links:readers') }}" rel="nofollow">读者墙</a></li>
                    <li><a href="{{ url('links:links') }}" rel="nofollow">友情链接</a></li>
           <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" rel="nofollow">关注本站 <span class="caret"></span></a>
            <ul class="dropdown-menu header-topbar-dropdown-menu">
              <li><a data-toggle="modal" data-target="#WeChat" rel="nofollow"><i class="fa fa-weixin"></i> 微信</a></li>
              <li><a href="#" rel="nofollow"><i class="fa fa-weibo"></i> 微博</a></li>
              <li><a data-toggle="modal" data-target="#areDeveloping" rel="nofollow"><i class="fa fa-rss"></i> RSS</a></li>
            </ul>
          </li>
        </ul>
   {%  if request.COOKIES['sessionid']  %}
                    <a data-toggle="modal" data-target="#loginModal" class="login" rel="nofollow">Hi~,{{ request.COOKIES['username'] }}</a>
                   &nbsp;&nbsp&nbsp&nbsp <a href="{{ url('users:logout') }}" >退出</a>&nbsp;&nbsp&nbsp&nbsp&nbsp&nbsp

                {% else %}
                    <a data-toggle="modal" href="{{ url('users:login') }}" rel="nofollow">Hi,请登录</a>&nbsp;&nbsp;
                    <a href="{{ url('users:register') }}" class="register" rel="nofollow">我要注册</a>&nbsp;&nbsp
                {% endif %}
      </div>
      <div class="collapse navbar-collapse" id="header-navbar">
        <ul class="nav navbar-nav navbar-right">
          <li class="hidden-index active"><a data-cont="博客首页" href="{{ url('index:index') }}">博客首页</a></li>
                    <li><a href="{{ url('category:category',kwargs={'num':1}) }}">前端技术</a></li>
                    <li><a href="{{ url('category:category',kwargs={'num':2}) }}">后端程序</a></li>
                    {#                    <li><a href="{{ url('category:category',kwargs={'num':3}) }}">管理系统</a></li>#}
                    <li><a href="{{ url('category:category',kwargs={'num':3}) }}">授人以渔</a></li>
                    <li><a href="{{ url('category:category',kwargs={'num':4}) }}">程序人生</a></li>
        </ul>
        <form class="navbar-form visible-xs" action="/Search" method="post">
          <div class="input-group">
            <input type="text" name="keyword" class="form-control" placeholder="请输入关键字" maxlength="20" autocomplete="off">
            <span class="input-group-btn">
            <button class="btn btn-default btn-search" name="search" type="submit">搜索</button>
            </span> </div>
        </form>
      </div>
    </div>
  </nav>
</header>
<section class="container container-page">
  <div class="pageside">
    <div class="pagemenus">
      <ul class="pagemenu">
       <li><a href="{{ url('links:tags') }}">标签云</a></li>
                    <li><a href="{{ url('links:readers') }}" rel="nofollow">读者墙</a></li>
                    <li><a href="{{ url('links:links') }}" rel="nofollow">友情链接</a></li>
      </ul>
    </div>
  </div>
  <div class="content">
    <header class="article-header">
      <h1 class="article-title">友情链接</h1>
    </header>
    <ul class="plinks">
        {% for link in links %}
      <li><a href="" title="" target="_blank" rel="nofollow"><img src="../static/images/icon/favicon.ico" alt="">{{ link.link }}</a></li>
        {% endfor %}
    </ul>
  </div>
</section>
<footer class="footer">
  <div class="container">
    <p>&copy; 2016 <a href="">liangdingugan@163.com</a> &nbsp; <a href="#/" target="_blank" rel="nofollow">豫ICP备20151109-1</a> &nbsp; <a href="#" target="_blank" class="sitemap">网站地图</a></p>
  </div>
  <div id="gotop"><a class="gotop"></a></div>
</footer>
<!--微信二维码模态框-->
<div class="modal fade user-select" id="WeChat" tabindex="-1" role="dialog" aria-labelledby="WeChatModalLabel">
  <div class="modal-dialog" role="document" style="margin-top:120px;width:280px;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="WeChatModalLabel" style="cursor:default;">微信扫一扫</h4>
      </div>
      <div class="modal-body" style="text-align:center"> <img src="../static/images/weixin.jpg" alt="" style="cursor:pointer"/> </div>
    </div>
  </div>
</div>
<!--该功能正在日以继夜的开发中-->
<div class="modal fade user-select" id="areDeveloping" tabindex="-1" role="dialog" aria-labelledby="areDevelopingModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="areDevelopingModalLabel" style="cursor:default;">该功能正在日以继夜的开发中…</h4>
      </div>
      <div class="modal-body"> <img src="../static/images/baoman/baoman_01.gif" alt="深思熟虑" />
        <p style="padding:15px 15px 15px 100px; position:absolute; top:15px; cursor:default;">很抱歉，程序猿正在日以继夜的开发此功能，本程序将会在以后的版本中持续完善！</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" data-dismiss="modal">朕已阅</button>
      </div>
    </div>
  </div>
</div>
<div id="rightClickMenu">
  <ul class="list-group rightClickMenuList">
    <li class="list-group-item disabled">welcome to my blog</li>
    <li class="list-group-item"><span>IP：</span>xxx</li>
    <li class="list-group-item"><span>地址：</span>xxx</li>
    <li class="list-group-item"><span>系统：</span>xxx </li>
    <li class="list-group-item"><span>浏览器：</span>xxx</li>
  </ul>
</div>
<script src="../static/js/bootstrap.min.js"></script> 
<script src="../static/js/jquery.ias.js"></script> 
<script src="../static/js/scripts.js"></script>
</body>
</html>